 <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
               
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
               
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>投诉时间</th>
                        <!--    <th>投诉人头像</th>
                            <th>投诉人昵称</th>-->
                            <th>投诉内容</th>
                            <th>投诉视频\图片</th>
                       <!--     <th>操作</th>-->
							<!--<th>模板消息</th>-->
                        </tr>
                       <foreach name="re" item="v">
                        <tr>
						    <td>{$v.time|date="Y-m-d H:i:s",###}</td>
                         <!--   <td><img src="{$v.touxiang}" height=50/></td>
                            <td>{$v.nicheng}</td>-->
							<td>{$v.text}</td>
							<td>
							
							{$v.title}
							
							</td>
							<!--<td>
							
							  <if condition="$v.status neq 1">
							  <a style="cursor:pointer;" onclick="del({$v.oid},{$v.id})">删除</a>
							  <else/>
							  违规内容已经删除
							  </if>
							</td>-->
							<!--<td>
							  <a onclick="xiaoxi({$v.oid})" style="cursor:pointer;">发送消息</a>
							</td>-->
                        </tr>
						</foreach>
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
            </form>
        </div>
    </div>

<script>
    function datu(i){
	layer.open({
  type: 2,
  title: '大图详情',
  shadeClose: true,
  shade: 0.8,
  area: ['80%', '90%'],
  content: '{:U("Fa/datu")}?id='+i //iframe的url
}); 
	}
	
	function del(i,e){
	
	  
	  if(confirm('您确认删除吗？')){
	
	
	   $.post("/shanchu.php",{"id":i,"tid":e},function(re){
	   
	     if(re==1){
		 
		   alert('删除成功');
		   
		   location.reload();
		 
		 }else{
		 
		   alert('删除失败');
		 
		 }
	   
	   
	   
	   })
	  }
	
	}
	
	
	function xiaoxi(i){
	
	   var val=prompt("请输入您想说的","这里输入");
    if (val!=null && val!="") {
	
	   $.post("{:U('Tousu/xiaoxi')}",{"val":val,"id":i},function(re){
		  
		      if(re==1){
			  
			    alert('成功');
			  }else{
			  
			    alert('失败');
			  
			  }
		  
		  
		  })
	
       
    }
	
	
		 /* $.post("{:U('Tousu/xiaoxi')}",{"val":val,"id":i},function(re){
		  
		      if(re==1){
			  
			    alert('成功');
			  }else{
			  
			    alert('失败');
			  
			  }
		  
		  
		  })
		  */
		  
    
	
	
	}
	
</script>